package com.example.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.mybatisplus.model.domain.Book;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2021-11-08
 */
public interface BookMapper extends BaseMapper<Book> {

    Book mySelectById(Integer id);

    Page<Book> mySelectList(@Param("page") Page<Book> page, @Param("ew") QueryWrapper<Book> wrapper);
}
